package com.fallsvc.product.controller;

import com.fallsvc.product.model.ProductInfo;
import com.fallsvc.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther falls_vc
 * description:
 * @date 2025/5/25  21:53
 */
@RequestMapping("/product")
@RestController
public class ProductController {
    @Autowired
    private ProductService productService;
    @RequestMapping("/{productId}")
    public ProductInfo selectProductById(@PathVariable("productId") Integer productId) {
        return productService.selectProductById(productId);
    }
}
